package my.topspin;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
import android.content.Intent;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);
        
        final Button help = (Button) findViewById(R.id.help);
        final Button about = (Button) findViewById(R.id.about);
        final Button exit = (Button) findViewById(R.id.exit);
        
        help.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View v) {
        		Intent i = new Intent(MainActivity.this, HelpActivity.class);
        		startActivity(i);
        	}
        });
        
        about.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View v) {
        		Intent i = new Intent(MainActivity.this, AboutActivity.class);
        		startActivity(i);
        	}
        });
        
        exit.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				System.exit(0);
			}
		});
    }
}